﻿<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>编辑用户</title>
		<link rel="stylesheet"
			href="css/table.css" type="text/css"/>
		<script type="text/javascript" src="javascript/jquery-1.7.2.js"></script>
		<script>
			$(function () {
				$("#userPassword").click(function () {
					$("#userPassword").val("");
				})
				$("#userPassword").blur(function(){
					let pwd = $("#userPassword");
					if(pwd.val() == ''){
						pwd.val("******");
					}
				});
			});
		</script>
		<script type="text/javascript"
			src="javascript/jquery.messager.js"></script>
		<script type="text/javascript" src="javascript/user_add.js"></script>

	</head>
	<body>
		<form id="powerAction!doModifyUser" name="powerAction!doModifyUser" action="useredit" method="post">
			<table width="100%">
				<tr>
					<td>
						<font color="black">您正在做的业务是：人力资源--权限管理--编辑用户</font>
					</td>
				</tr>
				<tr>
					<td align="right">
						<input type="submit" id="powerAction!doModifyUser_0" value="&#20445;&#23384;" class="BUTTON_STYLE1"/>

						<input type="button" value="返回" class="BUTTON_STYLE1"
							onclick="history.back()">
					</td>
				</tr>
			</table>
			<table width="100%" border="1" cellpadding=3 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
				class="TABLE_STYLE1">
				<tr>
					<td class="TD_STYLE1">用户名称</td>
					<td class="TD_STYLE2">
						<input type="text" th:value="${useredit.user_name}" id="userName" name="user_name"/>
						<input type="hidden" name="user_id" th:value="${useredit.user_id}"/>
					</td>
					<td class="TD_STYLE1">用户密码</td>
					<td class="TD_STYLE2">
						<input type="text" value="******" id="userPassword" name="user_password"/>
						<input type="hidden" th:value="${useredit.user_password}" name="oldpwd">
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">真实姓名</td>
					<td class="TD_STYLE2">
						<input type="text" th:value="${useredit.user_true_name}" id="userTrueName" name="user_true_name"/>
					</td>
					<td class="TD_STYLE1">用户身份</td>
					<td class="TD_STYLE2">
						<select disabled th:if="${useredit.user_type == 0}">
							<option value="0">超级管理员</option>
						</select>
						<select name="user_type" th:if="${useredit.user_type != 0}">
							<option th:each="r:${rights}" th:value="${r.r_id}" th:text="${r.r_name}" th:selected="${r.r_id == useredit.user_type}" value="1">人事专员</option>
							<option th:remove="all" value="2">人事经理</option>
							<option th:remove="all" value="3">薪酬专员</option>
							<option th:remove="all" value="4">薪酬经理</option>
							<option th:remove="all" value="5">招聘专员</option>
							<option th:remove="all" value="6">招聘经理</option>
							<option th:remove="all" value="7">应聘者</option>
							<option th:remove="all" value="8">系统管理员</option>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
